<%--
  User: cjp
  Date: 2007-7-11
  Time: 22:06:58
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/common/taglib.jsp" %>
<html>
<head><title>搜索</title></head>
<body>
<div class="maintable"><br>

    <div class="subtable nav" style="width: 100%">
        <f:nav></f:nav>
        »搜索
    </div>
    <br>
    <s:form method="get" action="/search.do">
        <div class="spaceborder" style="width: 100%">
            <table cellspacing="0" cellpadding="5" width="100%" align="center">
                <tr class="header">
                    <td colspan="3"><a href="member.php?action=credits&amp;view=search" target="_blank"><img
                            src="http://images.5d6d.com/cusimg/ea/redstone/X3nh3gor/credits.gif" alt="查看积分策略说明"
                            align="right" border="0"/></a>搜索
                    </td>
                </tr>
                <tr class="smalltxt" height="80">
                    <td class="altbg1" width="21%"><span class="bold">关键字</span></td>
                    <td class="altbg2" width="25%">
                        <s:text name="searchBean.key" size="45" maxlength="40"/>
                    </td>
                    <td class="altbg2" width="54%"><s:errors field="searchBean.key"></s:errors>支持*通配符，如a*b 包含了ab,abc等 匹配多个关键字全部，可用空格 如 a b
                    </td>
                </tr>
                <!--<tr class="smalltxt" height="80">
                <td class="altbg1"><span class="bold">用户名</span></td>
                <td class="altbg2"><input type="text" name="srchuname" size="45" maxlength="40"></td>
                <td class="altbg2">用户名中可使用通配符 "*"，如 *user*</td>
                </tr>-->
                <tr class="category">
                    <td colspan="3">搜索选项</td>
                </tr>
                <tr class="smalltxt">
                    <td class="altbg1"><span class="bold">搜索方式</span></td>
                    <td class="altbg2" colspan="2">
                        <s:radio class="radio" name="searchBean.searchType" value="0" checked="0"/>
                        &nbsp;标题搜索
                        <!--<input class="radio" type="radio" name="srchtype" value="blog" >&nbsp;搜索文集-->
                        <s:radio class="radio" name="searchBean.searchType" value="1"/>
                        &nbsp;全文搜索
                    </td>
                </tr>
                <tr class="smalltxt">
                <td class="altbg1"><span class="bold">主题范围</span></td>
                <td class="altbg2" colspan="2">
                    <s:radio value="0" name="searchBean.searchFilter" class="radio" checked="0"/>&nbsp;全部主题
                    <s:radio value="1" name="searchBean.searchFilter" class="radio"/>&nbsp;精华主题
                    <s:radio value="2" name="searchBean.searchFilter" class="radio"/>&nbsp;置顶主题
                </td>
                </tr>
                <!--<tr class="smalltxt">
                <td class="altbg1"><span class="bold">特殊主题</span></td>
                <td class="altbg2" colspan="2">
                <input class="checkbox" type="checkbox" name="special[]" value="1"> 投票主题&nbsp;
                <input class="checkbox" type="checkbox" name="special[]" value="2"> 交易主题&nbsp;
                <input class="checkbox" type="checkbox" name="special[]" value="3"> 悬赏主题&nbsp;
                <input class="checkbox" type="checkbox" name="special[]" value="4"> 活动主题
                </td>
                </tr>-->
                <tr class="smalltxt">
                    <td class="altbg1"><span class="bold">搜索时间</span></td>
                    <td class="altbg2" colspan="2">
                        <s:select name="searchBean.beforeTimes">
                            <s:option value="0">全部时间</s:option>
                            <s:option value="86400">1 天</s:option>
                            <s:option value="172800">2 天</s:option>
                            <s:option value="432000">1 周</s:option>
                            <s:option value="1296000">1 个月</s:option>
                            <s:option value="5184000">3 个月</s:option>
                            <s:option value="8640000">6 个月</s:option>
                            <s:option value="31536000">1 年</s:option>
                        </s:select>
                        <s:radio class="radio" name="searchBean.before" value="0" checked="0"/>
                        &nbsp;以内
                        <s:radio class="radio" name="searchBean.before" value="1"/>
                        &nbsp;以前
                    </td>
                </tr>
                <tr class="smalltxt">
                    <td class="altbg1"><span class="bold">排序类型</span></td>
                    <td class="altbg2" colspan="2">
                        <s:select name="searchBean.orderby">
                            <s:option value="lastpost" selected="selected">回复时间</s:option>
                            <s:option value="dateline">发布时间</s:option>
                            <s:option value="replies">回复数量</s:option>
                            <s:option value="views">浏览次数</s:option>
                        </s:select>

                        <s:radio class="radio"  name="searchBean.ascdesc" value="asc" checked="asc"/>&nbsp;按升序排列
                        <s:radio class="radio"  name="searchBean.ascdesc" value="desc" checked="checked"/>&nbsp;按降序排列
                    </td>
                </tr>
                <tr class="smalltxt">
                    <td class="altbg1" valign="top"><span class="bold">搜索范围</span></td>
                    <td class="altbg2" colspan="2">
                        <%--<s:select name="searchBean.forumIds" multiple="multiple" style="width: 45%" size="10">--%>
                        <s:select name="searchBean.forumIds"  style="width: 45%" size="1">
                            <s:option value="0" selected="true">搜索所有开放的论坛</s:option>
                            <f:listnav/>
                        </s:select>
                    </td>
                </tr>
            </table>
        </div>
        <br>
        <div class="option">
            <div class="submitbutton"><s:submit class="button" name="search" value="提  交"/></div>
        </div>
    </s:form>
    <br>
    <br>
</div>
</body>
</html>